@extends('user._layouts.default')

@section('css')
    {{HTML::style('user/css/base.css')}}
@stop

@section('user-main')
<div style="font-size: 25px;">{{{$title or ''}}}<a href="{{URL::to('user/news/add')}}" class="am-btn am-fr am-btn-xs am-btn-primary">投递新闻</a></div>
<hr/>

<table class="am-table am-table-bordered am-table-striped am-table-hover">
    <thead>
        <tr>
            <th>新闻标题</th>
            <th>创建时间</th>
            <th>审批状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	@foreach($news as $new)
        <tr>
            <td>{{$new->title}}</td>
            <td>{{$new->created_at}}</td>
            <td>{{my_get_news_status($new->status)}}</td>
            <td><a href="{{$new->home_url}}" class="am-btn am-btn-primary am-btn-xs ">查看</a><a href="{{URL::to('user/news/modify/'.$new->id)}}" class="am-btn am-btn-primary am-btn-xs am-margin-left-sm">修改</a><a href="{{URL::to('user/news/delete/'.$new->id)}}" class="am-btn am-btn-danger am-btn-xs am-margin-left-sm">删除</a></td>
        </tr>
        @endForeach
    </tbody>
</table>
@stop
<!--[if (gte IE 9)|!(IE)]><!-->
@section('js')

@stop
